//
//  ThanksViewController.m
//  Arts1
//
//  Created by Mac Jc on 15/10/15.
//  Copyright © 2015年 Arts1. All rights reserved.
//

#import "ThanksViewController.h"
#import "AllHeader.h"

@interface ThanksViewController ()<UITableViewDataSource,UITableViewDelegate>

@property (nonatomic,strong) UITableView *tableView;
@property (nonatomic,strong) NSArray *arr;


@end

@implementation ThanksViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.view.backgroundColor = kBackgroundColor;
    
    _tableView = [[UITableView alloc] initWithFrame:CGRectMake(10, 20, SCREEN_WIDTH - 20, SCREEN_HEIGHT) style:(UITableViewStylePlain)];
    [_tableView setSeparatorStyle:(UITableViewCellSeparatorStyleNone)];
    _tableView.backgroundColor = kBackgroundColor;
    _tableView.showsVerticalScrollIndicator = NO;
    _tableView.delegate = self;
    _tableView.dataSource = self;
    
    UIView *headerView = [[UIView alloc] initWithFrame:CGRectMake(10, 0, _tableView.size.width, 10)];
    headerView.backgroundColor = kBackgroundColor;
    
    UIImageView *colorImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, headerView.size.width, 10)];
    colorImageView.image = [UIImage imageNamed:@"colorImage"];
    colorImageView.backgroundColor = [UIColor whiteColor];
    [UIView viewRediusForLeftAndReightOfTop:colorImageView withRedius:5];
    colorImageView.layer.masksToBounds = YES;
    [headerView addSubview:colorImageView];
    
    _tableView.tableHeaderView = colorImageView;
    [self.view addSubview:_tableView];
    
    
    _arr = @[@" ",@" ",@"蔚景铖",@"王元元",@"袁阿迅",@"郭鹏文",@"蔚华丽",@"宦晶羽",@"杜占鹏",@"吕纲",@"闫鹏",@" ",@" ",@" ",@" ",@" ",@" ",@" ",@" ",@" ",@" "];
    
}



- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return _arr.count;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"thanksCell"];
    if (cell == nil) {
        cell = [[UITableViewCell alloc] initWithStyle:(UITableViewCellStyleDefault) reuseIdentifier:@"thanksCell"];
        cell.backgroundColor = [UIColor whiteColor];
        cell.textLabel.text = _arr[indexPath.row];
        cell.textLabel.font = [UIFont systemFontOfSize:14];
        cell.textLabel.textColor = kCustomColor(150, 150, 150, 1);
        [cell.textLabel setTextAlignment:(NSTextAlignmentCenter)];
    }
    return cell;
    
}




- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
